 #!/usr/bin/python
 # -*- coding: latin-1 -*-


 # Copyright © 2008  Hedvig Kamp
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation, either version 3 of the License, or
 # (at your option) any later version.
 #
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.

import profile
import pstats
import TestCases
from modload import load_module

src_path = "../src/"
ConsoleViewer = load_module("ConsoleViewer", src_path)
ConsoleController = load_module("ConsoleController", src_path)
Game = load_module("Game", src_path)
GameManager = load_module("GameManager", src_path)
Player = load_module("Player", src_path)
Team = load_module("Team", src_path)
Stone = load_module("Stone", src_path)


tc = TestCases.TestCases()
#profile.start()
profile.run('tc.run_all_tests()','out_file')
#profile.stop()
p = pstats.Stats('out_file')
#p.strip_dirs().sort_stats(-1).print_stats()
p.print_stats()




